home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 3
/
Info_Mac_1994-01.iso
/
Development
/
General
/
GCC 1.37.1r15
/
Tests
/
fix-no-rtd.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-12-11
|
328b
|
17 lines
/* Compile with -fomit-frame-pointer, should generate RTS instead of RTD
to return from foo. */
/* (Declaring foo to be pascal generates a garbage move insn with arg of 12345.) */
struct rect { short a, b, c, d; };
struct rect glob, glob2;
struct rect foo(int x)
{
glob.a = x;
return glob;
}
main() { bar(foo(789)); }